﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TecExtensions;

namespace TecBaseObjects.Objects {

    public class OrganisationsShortListObj {

        #region Members
        #endregion

        #region Constructor

        public OrganisationsShortListObj() {
        }

        #endregion

        #region Properties

        private int orgKey;
        public int OrgKey {
            get { return this.orgKey; }
            set { this.orgKey = value; }
        }

        private string prefix;
        public string Prefix {
            get { return this.prefix; }
            set { this.prefix = value; }
        }

        private string name;
        public string OrgName {
            get { return this.name; }
            set { this.name = value; }
        }

        private string zusätzeFW;
        public string ZusätzeFW {
            get { return this.zusätzeFW; }
            set { this.zusätzeFW = value; }
        }

        private string rechtsForm;
        public string RechtsForm {
            get { return this.rechtsForm; }
            set { this.rechtsForm = value; }
        }

        private string suchbegriff;
        public string Suchbegriff {
            get { return this.suchbegriff; }
            set { this.suchbegriff = value; }
        }

        private string abteilung;
        public string Abteilung {
            get { return this.abteilung; }
            set { this.abteilung = value; }
        }

        private string adresse;
        public string Adresse {
            get { return this.adresse; }
            set { this.adresse = value; }
        }

        private string strasse;
        public string Strasse {
            get { return this.strasse; }
            set { this.strasse = value; }
        }

        public string OrgData {
            get {
                return (this.OrgName.AddSpace()
                      + this.Prefix.AddSpace()
                      + this.RechtsForm.AddSpace()
                      + this.ZusätzeFW.AddSpace()).Trim()
                      + (this.Adresse != null && this.Adresse != "" ?" (" + this.Adresse + ")" : "");
                
            }
        }

        #endregion

    }
}
